package com.hc.fdkforwarders.controller;


import com.hc.fdkforwarders.common.Result;
import com.hc.fdkforwarders.param.PrintLableParam;
import com.hc.fdkforwarders.service.SellerFetchOrderService;
import com.hc.fdkforwarders.vo.NumSumListQueryVO;
import com.hc.fdkforwarders.vo.NumSumListVO_2;
import com.hc.fdkforwarders.vo.PrintLabelVO_1;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@RequestMapping("/forwarder")
public class SellerFetchOrderController {

    @Resource
    SellerFetchOrderService sellerFetchOrderService;

    @PostMapping("/num/summary/list")
    public Result<NumSumListVO_2> showGoods( @RequestBody NumSumListQueryVO numSumListQueryVO){
        return Result.ok(sellerFetchOrderService.showGoodsListS(numSumListQueryVO));
    }

    @PostMapping("/find/tag/list/for/printing")
    public Result<PrintLabelVO_1> printAllLabel(@RequestBody PrintLableParam param){
        return Result.ok(sellerFetchOrderService.printAllLabel(param));
    }

    @PostMapping("/find/tag/list/for/printing")
    public Result<PrintLabelVO_1> printLabel(@RequestBody PrintLableParam param){
        return Result.ok(sellerFetchOrderService.printAllLabel(param));
    }
}
